<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />	
	<title>后台首页 - 欢迎使用商城系统</title>
	<link type="text/css" rel="stylesheet" href="__COMMON__/css/style.css" />
	<script src="" type="text/javascript" src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="../../include/js/jquery.js"></script>
</head>

<include file="__PUBLIC__/head"/> 
<div class="content">
	<div class="main">
		<include file="__PUBLIC__/left"/>
		<!-- start right -->


<div class="right">
	<div class="now">
		<div class="now_l"></div>
		<div class="now_m">
			<span class="fl">商品分类</span>
			<span class="fr fabu"><a href="{|U:'Type/index'}">返回上一步</a></span>
		</div>
		<div class="now_r"></div>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list mat5">
	<tr>
		<td class="bgtt" width="60">属性ID</td>
		<td class="bgtt" width="70">属性名称</td>
		<td class="bgtt">属性类别</td>
		<td class="bgtt">属性值</td>
		<td class="bgtt" width="88">操作</td>
	</tr>
	<foreach from="$data" key="$k" value="$v">
	<tr>
		<td>{$v.taid}</td>
		<td class="aleft" style="text-align: center;">{$v.tname}</td>		
		<td class="aleft" style="text-align: center;">
			<if value="$v['attrtype']"
			<span>规格</span>
			<else/>
			<span>属性</span>
		</if>
		</td>
		<td class="aleft" style="text-align: center;">{$v.attrvalue}</td>
		<td>
			
			<a href="{|U:'Typeattr/editlist',array('taid'=>$v['taid'])}" class="admin_edit mar3">修改</a>
			<a href="{|U:'Typeattr/del',array('taid'=>$v['taid'])}" class="admin_del" onclick="return pe_cfone(this, '删除')">删除</a>
		</td>
	</tr>
	</foreach>
		<tr>
			<td><a href="{|U:'Typeattr/addattrlist'}" class="addattr">添加属性</a></td>
		</tr>
		
				
		
		
	</table>
	</form>
</div>

		<div class="clear"></div>
	</div>
	<div class="foot">Copyright <span class="num">&copy;</span> 2014-2017 <a target="_blank" href="#"></a> 版权所有</div>
</div>
<script type="text/javascript"> 
$(function(){
	$(".list").find("tr").hover(
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#ffffdd");
		},
		function(){
			if ($(this).find("td").hasClass("bgtt")) return;
			$(this).find("td").css("background-color", "#fff");
		}
	)
})
</script>


		<!-- end right -->



</body>
</html>	
